home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / widget / nsINativeScrollbar.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  190 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsINativeScrollbar.idl
  3.  */
  4.  
  5. #ifndef __gen_nsINativeScrollbar_h__
  6. #define __gen_nsINativeScrollbar_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsPresContext; /* forward declaration */
  18.  
  19. class nsIFrame; /* forward declaration */
  20.  
  21. class nsIContent; /* forward declaration */
  22.  
  23. class nsIScrollbarMediator; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsINativeScrollbar */
  27. #define NS_INATIVESCROLLBAR_IID_STR "b77380bc-610b-49e3-8df7-18cc946285c5"
  28.  
  29. #define NS_INATIVESCROLLBAR_IID \
  30.   {0xb77380bc, 0x610b, 0x49e3, \
  31.     { 0x8d, 0xf7, 0x18, 0xcc, 0x94, 0x62, 0x85, 0xc5 }}
  32.  
  33. class NS_NO_VTABLE nsINativeScrollbar : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_INATIVESCROLLBAR_IID)
  37.  
  38.   /* void setContent (in nsIContent content, in nsISupports scrollbar, in nsIScrollbarMediator mediator); */
  39.   NS_IMETHOD SetContent(nsIContent *content, nsISupports *scrollbar, nsIScrollbarMediator *mediator) = 0;
  40.  
  41.   /* readonly attribute long narrowSize; */
  42.   NS_IMETHOD GetNarrowSize(PRInt32 *aNarrowSize) = 0;
  43.  
  44.   /* attribute unsigned long position; */
  45.   NS_IMETHOD GetPosition(PRUint32 *aPosition) = 0;
  46.   NS_IMETHOD SetPosition(PRUint32 aPosition) = 0;
  47.  
  48.   /* attribute unsigned long maxRange; */
  49.   NS_IMETHOD GetMaxRange(PRUint32 *aMaxRange) = 0;
  50.   NS_IMETHOD SetMaxRange(PRUint32 aMaxRange) = 0;
  51.  
  52.   /* attribute unsigned long lineIncrement; */
  53.   NS_IMETHOD GetLineIncrement(PRUint32 *aLineIncrement) = 0;
  54.   NS_IMETHOD SetLineIncrement(PRUint32 aLineIncrement) = 0;
  55.  
  56.   /* attribute unsigned long viewSize; */
  57.   NS_IMETHOD GetViewSize(PRUint32 *aViewSize) = 0;
  58.   NS_IMETHOD SetViewSize(PRUint32 aViewSize) = 0;
  59.  
  60. };
  61.  
  62. /* Use this macro when declaring classes that implement this interface. */
  63. #define NS_DECL_NSINATIVESCROLLBAR \
  64.   NS_IMETHOD SetContent(nsIContent *content, nsISupports *scrollbar, nsIScrollbarMediator *mediator); \
  65.   NS_IMETHOD GetNarrowSize(PRInt32 *aNarrowSize); \
  66.   NS_IMETHOD GetPosition(PRUint32 *aPosition); \
  67.   NS_IMETHOD SetPosition(PRUint32 aPosition); \
  68.   NS_IMETHOD GetMaxRange(PRUint32 *aMaxRange); \
  69.   NS_IMETHOD SetMaxRange(PRUint32 aMaxRange); \
  70.   NS_IMETHOD GetLineIncrement(PRUint32 *aLineIncrement); \
  71.   NS_IMETHOD SetLineIncrement(PRUint32 aLineIncrement); \
  72.   NS_IMETHOD GetViewSize(PRUint32 *aViewSize); \
  73.   NS_IMETHOD SetViewSize(PRUint32 aViewSize); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSINATIVESCROLLBAR(_to) \
  77.   NS_IMETHOD SetContent(nsIContent *content, nsISupports *scrollbar, nsIScrollbarMediator *mediator) { return _to SetContent(content, scrollbar, mediator); } \
  78.   NS_IMETHOD GetNarrowSize(PRInt32 *aNarrowSize) { return _to GetNarrowSize(aNarrowSize); } \
  79.   NS_IMETHOD GetPosition(PRUint32 *aPosition) { return _to GetPosition(aPosition); } \
  80.   NS_IMETHOD SetPosition(PRUint32 aPosition) { return _to SetPosition(aPosition); } \
  81.   NS_IMETHOD GetMaxRange(PRUint32 *aMaxRange) { return _to GetMaxRange(aMaxRange); } \
  82.   NS_IMETHOD SetMaxRange(PRUint32 aMaxRange) { return _to SetMaxRange(aMaxRange); } \
  83.   NS_IMETHOD GetLineIncrement(PRUint32 *aLineIncrement) { return _to GetLineIncrement(aLineIncrement); } \
  84.   NS_IMETHOD SetLineIncrement(PRUint32 aLineIncrement) { return _to SetLineIncrement(aLineIncrement); } \
  85.   NS_IMETHOD GetViewSize(PRUint32 *aViewSize) { return _to GetViewSize(aViewSize); } \
  86.   NS_IMETHOD SetViewSize(PRUint32 aViewSize) { return _to SetViewSize(aViewSize); } 
  87.  
  88. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  89. #define NS_FORWARD_SAFE_NSINATIVESCROLLBAR(_to) \
  90.   NS_IMETHOD SetContent(nsIContent *content, nsISupports *scrollbar, nsIScrollbarMediator *mediator) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContent(content, scrollbar, mediator); } \
  91.   NS_IMETHOD GetNarrowSize(PRInt32 *aNarrowSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNarrowSize(aNarrowSize); } \
  92.   NS_IMETHOD GetPosition(PRUint32 *aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(aPosition); } \
  93.   NS_IMETHOD SetPosition(PRUint32 aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPosition(aPosition); } \
  94.   NS_IMETHOD GetMaxRange(PRUint32 *aMaxRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxRange(aMaxRange); } \
  95.   NS_IMETHOD SetMaxRange(PRUint32 aMaxRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxRange(aMaxRange); } \
  96.   NS_IMETHOD GetLineIncrement(PRUint32 *aLineIncrement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineIncrement(aLineIncrement); } \
  97.   NS_IMETHOD SetLineIncrement(PRUint32 aLineIncrement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineIncrement(aLineIncrement); } \
  98.   NS_IMETHOD GetViewSize(PRUint32 *aViewSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewSize(aViewSize); } \
  99.   NS_IMETHOD SetViewSize(PRUint32 aViewSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetViewSize(aViewSize); } 
  100.  
  101. #if 0
  102. /* Use the code below as a template for the implementation class for this interface. */
  103.  
  104. /* Header file */
  105. class nsNativeScrollbar : public nsINativeScrollbar
  106. {
  107. public:
  108.   NS_DECL_ISUPPORTS
  109.   NS_DECL_NSINATIVESCROLLBAR
  110.  
  111.   nsNativeScrollbar();
  112.  
  113. private:
  114.   ~nsNativeScrollbar();
  115.  
  116. protected:
  117.   /* additional members */
  118. };
  119.  
  120. /* Implementation file */
  121. NS_IMPL_ISUPPORTS1(nsNativeScrollbar, nsINativeScrollbar)
  122.  
  123. nsNativeScrollbar::nsNativeScrollbar()
  124. {
  125.   /* member initializers and constructor code */
  126. }
  127.  
  128. nsNativeScrollbar::~nsNativeScrollbar()
  129. {
  130.   /* destructor code */
  131. }
  132.  
  133. /* void setContent (in nsIContent content, in nsISupports scrollbar, in nsIScrollbarMediator mediator); */
  134. NS_IMETHODIMP nsNativeScrollbar::SetContent(nsIContent *content, nsISupports *scrollbar, nsIScrollbarMediator *mediator)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* readonly attribute long narrowSize; */
  140. NS_IMETHODIMP nsNativeScrollbar::GetNarrowSize(PRInt32 *aNarrowSize)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* attribute unsigned long position; */
  146. NS_IMETHODIMP nsNativeScrollbar::GetPosition(PRUint32 *aPosition)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. NS_IMETHODIMP nsNativeScrollbar::SetPosition(PRUint32 aPosition)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* attribute unsigned long maxRange; */
  156. NS_IMETHODIMP nsNativeScrollbar::GetMaxRange(PRUint32 *aMaxRange)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. NS_IMETHODIMP nsNativeScrollbar::SetMaxRange(PRUint32 aMaxRange)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* attribute unsigned long lineIncrement; */
  166. NS_IMETHODIMP nsNativeScrollbar::GetLineIncrement(PRUint32 *aLineIncrement)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170. NS_IMETHODIMP nsNativeScrollbar::SetLineIncrement(PRUint32 aLineIncrement)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* attribute unsigned long viewSize; */
  176. NS_IMETHODIMP nsNativeScrollbar::GetViewSize(PRUint32 *aViewSize)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180. NS_IMETHODIMP nsNativeScrollbar::SetViewSize(PRUint32 aViewSize)
  181. {
  182.     return NS_ERROR_NOT_IMPLEMENTED;
  183. }
  184.  
  185. /* End of implementation class template. */
  186. #endif
  187.  
  188.  
  189. #endif /* __gen_nsINativeScrollbar_h__ */
  190.